Adjusting the voltage of the generator